package com.fjd.websocket;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.websocket.Session;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SessionWrap {
    private String from; //会话发起者id

    private String to; //会话接收者id

    private Session session; //会话

    private LocalDateTime lastTime; //最后活跃时间
}
